package com.zhuojy.equity.mall.admin.common.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (TNotice)表实体类
 *
 * @author makejava
 * @since 2024-03-25 15:33:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tnotice")
public class TNotice implements Serializable {

    private static final long serialVersionUID = 3712268180924202854L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 标题 
    */
    private String title;

    /**
    * 文章内容
    */
    private String content;

    /**
    * 文章类型 0系统消息 1公司消息 2产品消息
    */
    private String noticeType;

    /**
    * 添加人用户id
    */
    private String createBy;

    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
    * 修改人用户
    */
    private String updateBy;

    /**
    * 修改时间
    */
    private Date updateTime;

    @TableField(exist = false)
    private String readFlag;

}
